// const { default: VueRouter } = require("vue-router");
import Vue from "vue";
import VueRouter from "vue-router";
import XinChe from "../views/XinChe.vue";
import XinNengYuan from "../views/XinNengYuan.vue";
import FaXian from "../views/FaXian.vue";
import ErShouChe from "../views/ErShouChe.vue";
import WoDe from "../views/WoDe.vue";

Vue.use(VueRouter);
export default new VueRouter({
    mode:"history",
    routes:[
        {
            path:'/xinche',
            name:'xinche',
            component:XinChe
        },{
            path:'/xinnengyuan',
            name:'xinnengyuan',
            component:XinNengYuan
        },{
            path:'/faxian',
            name:'faxian',
            component:FaXian
        },{
            path:'/ershouche',
            name:'ershouche',
            component:ErShouChe
        },{
            path:'/wode',
            name:'wode',
            component:WoDe
        },{
            path:'/',
            redirect:{
                path:'/xinche'
            }
        },

    ]
})